<template>
  <div class="common-layout">
    <el-container>
      <el-header><Mheader></Mheader></el-header>
      <el-container class="hon">
        <el-aside :width="inStore.isCollapse ? '66px' : '180px'"  ><Maside></Maside></el-aside>
        <el-main><RouterView></RouterView></el-main>
      </el-container>
    </el-container>
  </div>
</template>


<script setup lang="ts" name="App">
  import Maside from '../components/Maside.vue';
  import Mheader from '../components/Mheader.vue';
  import {useStore} from '@/stores/index'
  const inStore = useStore()
</script>

<style>
  body{
    background-color: #f5f5f5;
  }
  .el-header{
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: #1976d2;
  height: 50px;
  padding-left: 0;
}

.el-aside{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #dcdfe6 ;
  background-color: rgb(255, 255, 255);
  min-height: 100vh;
}


 
   
</style>